define ['fizz', 'knockback', 'knockout'],  (fizz, kb, ko) ->
  class BootstrapView extends fizz.View
  
    constructor: ->
      super()
      
    createHtml: (uniqueId) ->
      '<' + @containerElemType + ' id="' + uniqueId + '" class="view-container"></' + @containerElemType + '>'
      
    createHtmlModal: (uniqueId) ->
      @modalUniqueId = 'modal_' + uniqueId
      '<' + @containerElemType + ' id="' + @modalUniqueId + '" class="modal fade"><div class="modal-dialog"><div id="' + uniqueId + '" class="view-container modal-content"></div></div></' + @containerElemType + '>'
        
    showModal: () ->
      @$el.parents('#' + @modalUniqueId).modal().on 'hidden.bs.modal', () => @remove()
    
    hideModal: () ->
      @$el.parents('#' + @modalUniqueId).modal 'hide'
      
